package com.ruoyi.bizsys.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 还款减免配置对象 reduce_config
 *
 * @author wqg
 * @date 2022-04-07
 */

@Data
public class ReduceConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /***主动还款渠道*/
    public static final String ACTION_TYPE_QUICK_REPAY = "QuickRepay";

    /**
     * PK
     */
    @Excel(name = "${comment}", readConverterExp = "PK")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 还款渠道，Quick repay、其他
     */
    @Excel(name = "还款渠道，Quick repay、其他")
    private String actionType;
    /**
     * 应还本金下限
     */
    @Excel(name = "应还本金下限")
    private BigDecimal repaymentAmtMin;
    /**
     * 减免次数上限
     */
    @Excel(name = "减免次数上限")
    private Integer numLimit;
    /**
     * 比例
     */
    @Excel(name = "比例")
    private BigDecimal rate;
    /**
     * 截止日期<=23点57
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "截止日期<=23点57", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dayLastAt;
    /**
     * 减免最小金额10N
     */
    @Excel(name = "减免最小金额10N")
    private BigDecimal reduceAmtMin;
    /**
     * 减免上限金额	默认0，大于就按照这个走
     */
    @Excel(name = "减免上限金额	默认0，大于就按照这个走")
    private BigDecimal reduceAmtMax;
    /**
     * 是否启用:0失败 1正常
     */
    @Excel(name = "是否启用:0失败 1正常")
    private String status;
    /**
     * 逻辑状态0失败 1正常
     */
    @Excel(name = "逻辑状态0失败 1正常")
    private String state;
    /**
     * 创建者
     */
    @Excel(name = "逻辑状态0失败 1正常")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "逻辑状态0失败 1正常", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;
    /**
     * 更新者
     */
    @Excel(name = "逻辑状态0失败 1正常")
    private String updateBy;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "逻辑状态0失败 1正常", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;
    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;
}